<?php

class Xzsdsplus_Costpriceplus_Block_Groups_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {
    
    public function __construct() {
        parent::__construct();
        $this->setId('groups_tabs');
        $this->setDestElementId('edit_form');
        $this->setTitle(Mage::helper('costpriceplus')->__('Group Information'));
    }
    
    protected function _beforeToHtml() {
        $this->addTab('form_section', array(
            'label'     => Mage::helper('costpriceplus')->__('General'),
            'title'     => Mage::helper('costpriceplus')->__('General'),
            'content'   => $this->getLayout()->createBlock('costpriceplus/groups_edit_tab_form')->toHtml(),
        ));
        
        $this->addTab('related', array(
            'label'     => Mage::helper('costpriceplus')->__('Group Products'),
            'title'     => Mage::helper('costpriceplus')->__('Group Products'),
            'content'   => $this->getLayout()->createBlock('costpriceplus/groups_edit_tab_related', 'costpriceplus.product.grid')->toHtml(),
        ));
        
        return parent::_beforeToHtml();
    }
    
}
